package gui.view.android.graphics.factories;

import gui.view.android.graphics.JavaRect;
import gui.view.android.graphics.JavaRectF;

import com.nightpiter.view.graphics.Rect;
import com.nightpiter.view.graphics.RectF;
import com.nightpiter.view.graphics.abstaractions.AbstractRectF;
import com.nightpiter.view.graphics.factories.RectFFactory;

public class JavaRectFFactory extends RectFFactory {

	@Override
	public AbstractRectF create() {
		return new JavaRectF();
	}

	@Override
	public AbstractRectF create(Rect rect) {
		return new JavaRectF((JavaRect) rect.getDelegate());
	}

	@Override
	public AbstractRectF create(RectF rectF) {
		return new JavaRectF((JavaRectF) rectF.getDelegate());
	}

	@Override
	public AbstractRectF create(float left, float top, float right, float bottom) {
		return new JavaRectF(bottom, left, right, top);
	}

}
